import fly from '../request'
import baseURL from '../baseUrlConfig.js'
// 登录
export function userWeChatLogin(data) {
  return fly.request({
    baseURL: baseURL.IDC,
    url: '/login/wechat',
    method: 'post',
    body: data
  })
}
// 获取用户信息
export function apiGetUserInfo(token) {
  // console.log('uaaGetUserInfo()-执行-token', token)
  return fly.request({
    headers: {
      'content-type': 'application/json',
      'X-Tag': 'flyio',
      'X-Auth-Token': token
    },
    baseURL: baseURL.IDC,
    url: '/login/manager',
    method: 'get',
  })
}
// 调度汇总查询 - 
export function getDispatchInfo(data) {
  return fly.request({
    baseURL: baseURL.IDC,
    url: '/dispatch/getDispatchInfo ',
    method: 'post',
    body: data
  })
}
// 调度详情查询 - 分页
export function getDispatchInfoDetails(data) {
  return fly.request({
    baseURL: baseURL.IDC,
    url: '/dispatch/getDispatchInfoDetails',
    method: 'post',
    body: data
  })
}